-- GENERATED SPELL FOR [Alliance Field Scout] --


function spell0_18581(pUnit, Event) --@Battle Standard,n/a--
pUnit:FullCastSpellOnTarget(32430,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18581', 595, 1)
end

function Sorts_18581(pUnit, Event)
local choix_sorts_18581 = math.random(0, 0)
if choix_sorts_18581 == 0 then
pUnit:RegisterEvent('spell0_18581', 1, 1)
end
end

function mob18581_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18581', math.random(1500, 3000), 1)
end

function mob18581_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18581_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18581_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18581, 1, 'mob18581_Action')
RegisterUnitEvent(18581, 2, 'mob18581_Leave')
RegisterUnitEvent(18581, 3, 'mob18581_Kill')
RegisterUnitEvent(18581, 4, 'mob18581_Die')
